<g:if test="${Offset==0}">
  <g:if test="${Proteins.size()==0}">
    <div class="loading">0 Proteins found</div>
  </g:if>
  <g:else>
    <div class="list">
      <div class="line headline listhead listline">
        <div class="element protein">Protein</div>
        <div class="element gene">Gene Name</div>
        <div class="element description">Description</div>
        <g:set var="infoKey" value="${'proteins_nrCelllines'}" />
        <div class="element celllines"><g:render template="../main/infoBox" />#Cell Lines</div>
        <g:set var="infoKey" value="${'proteins_histogram'}" />
        <div class="element histo"><g:render template="../main/infoBox" />Histogram</div>
      </div>
      <div class="data">
        <g:render template="proteinResultsData" />
      </div>
      <div class="line footline">
        <div class="element found moParent">${NrOfProteins} Proteins found</div>
        <g:form name="download" action="getResults">
        <g:hiddenField name="query" value="${Query}"/>
        <g:each in="${Projects}" var="proj">
          <g:hiddenField name="project${proj}" value="true"/>
        </g:each>
        <g:actionSubmit value="Download" action="proteinDownload" onclick="this.form.target='_blank';return true;" class="element download button"/>
      </g:form>
      </div>
    </div>
    <script type="text/javascript">initResultTable();</script>
  </g:else>
</g:if>
<g:else>
  <g:render template="proteinResultsData" />
</g:else>
